﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace KylinORM.Data
{
    /// <summary>
    /// 含分页信息的强类型数据实体集合
    /// </summary>
    /// <typeparam name="T">数据实体类型</typeparam>
    public class DataResult<T> where T : new()
    {
        /// <summary>
        /// 当前页码
        /// </summary>
        public int CurrentPage { get; set; }
        /// <summary>
        /// 总页码
        /// </summary>
        public int TotalPages { get; set; }
        /// <summary>
        /// 总行数
        /// </summary>
        public int TotalItems { get; set; }
        /// <summary>
        /// 每页行数
        /// </summary>
        public int ItemsPerPage { get; set; }
        /// <summary>
        /// 数据实体
        /// </summary>
        public List<T> Items { get; set; }
    }

}
